package com.kinglone.back.user.service;

import com.kinglone.back.user.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserService {

	User login(String username, String password);

    List<User> list(Map<String, Object> map);

    int getTotal(Map<String, Object> map);

    User selectById(String userId);

    void setRoles(@Param("userId") Integer userId, @Param("roleIds") String roleIds);

    User getUserByAccount(String account);
}
